﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:System="clr-namespace:System;assembly=mscorlib" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" mc:Ignorable="d" x:Class="Crm.Views.Kampanya"
           Width="800" Height="600" 
           Title="Kampanya">
	<Grid x:Name="LayoutRoot" Margin="0" Width="778" Height="561">
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition Height="Auto" />
		</Grid.RowDefinitions>

		<Button x:Name="CancelButton" Content="Sil" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
		<Button x:Name="OKButton" Content="Kaydet" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
		<Border BorderBrush="Black" BorderThickness="1" Margin="8">
			<Grid Margin="0" Name="grid">
				<Grid.RowDefinitions>
					<RowDefinition Height="0.395*"/>
					<RowDefinition Height="0.605*"/>
				</Grid.RowDefinitions>
				<Rectangle Fill="#FFA1A1A1" Height="39" Margin="0" Stroke="Black" VerticalAlignment="Top" HorizontalAlignment="Left" Width="761"/>
				<TextBlock HorizontalAlignment="Left" Margin="8,3,0,0" TextWrapping="Wrap" Text="Kampanya" VerticalAlignment="Top" FontSize="21.333" FontWeight="Bold"/>
				<TextBlock HorizontalAlignment="Left" Margin="12,55,0,0" TextWrapping="Wrap" Text="Kampanya Adı" VerticalAlignment="Top" FontSize="14.667" FontWeight="Bold"/>
				<TextBlock HorizontalAlignment="Left" Margin="8,94,0,85.667" TextWrapping="Wrap" Text="Kampanya Tipi" FontSize="14.667" FontWeight="Bold" d:LayoutOverrides="Height"/>
				<TextBlock HorizontalAlignment="Left" Margin="36,0,0,45.667" TextWrapping="Wrap" Text="Firma Kodu" VerticalAlignment="Bottom" FontSize="14.667" FontWeight="Bold"/>
				<TextBlock HorizontalAlignment="Left" Margin="26,0,0,4.667" TextWrapping="Wrap" Text="Firma Ünvan" VerticalAlignment="Bottom" FontSize="14.667" FontWeight="Bold" d:LayoutOverrides="VerticalAlignment"/>
				<TextBox x:Name="txtAdi" Margin="152,55,319,0" TextWrapping="Wrap" VerticalAlignment="Top"/>
				<ComboBox x:Name="cmbTipi" Margin="152,90,319,83" SelectionChanged="cmbTipi_SelectionChanged">
					<System:String>Genel</System:String>
					<System:String>Firmaya Özel</System:String>
				</ComboBox>
				<TextBox x:Name="txtFirmaKodu" Margin="152,0,355,43.667" TextWrapping="Wrap" VerticalAlignment="Bottom"/>
				<TextBox x:Name="txtFirmaUnvan" Margin="152,0,355,4.667" TextWrapping="Wrap" VerticalAlignment="Bottom"/>
				<Button x:Name="btnKod" Content="..." HorizontalAlignment="Right" Margin="0,0,319,44.667" VerticalAlignment="Bottom" Width="32"/>
				<Button x:Name="btnUnvan" Content="..." HorizontalAlignment="Right" Margin="0,0,319,5.667" VerticalAlignment="Bottom" Width="32"/>
				<sdk:DataGrid x:Name="dataGrid" Margin="4,3,2,3" Grid.Row="1" AutoGenerateColumns="False">
					<sdk:DataGrid.Columns>
                        
						<sdk:DataGridTemplateColumn Header="Stok Bul">
							<sdk:DataGridTemplateColumn.CellTemplate>
								<DataTemplate>
									<Button x:Name="btnBul" Content="Bul"  Height="24"  Cursor="Hand" Click="btnBul_Click_1" />
								</DataTemplate>
							</sdk:DataGridTemplateColumn.CellTemplate>
						</sdk:DataGridTemplateColumn>
						<sdk:DataGridTextColumn Header="Stok Kod" Binding="{Binding StokKod}"/>
						<sdk:DataGridTextColumn Header="Adi" Width="450" Binding="{Binding Adi}"/>
						<sdk:DataGridTextColumn Header="Fiyat" Width="100" Binding="{Binding Fiyat}"/>
						<sdk:DataGridTemplateColumn Header="Sil">
							<sdk:DataGridTemplateColumn.CellTemplate>
								<DataTemplate>
									<Button x:Name="btnSil" Content="Sil"  Height="24"  Cursor="Hand" Click="btnSil_Click_1" />
								</DataTemplate>
							</sdk:DataGridTemplateColumn.CellTemplate>
						</sdk:DataGridTemplateColumn>
					</sdk:DataGrid.Columns>
				</sdk:DataGrid>
				<Button x:Name="btnYeniSatir" Content="Yeni Satır" HorizontalAlignment="Right" Margin="0,0,2,1" VerticalAlignment="Bottom" Width="117" Click="btnYeniSatir_Click_1"/>
                <TextBlock HorizontalAlignment="Left" Margin="670,57,0,0" TextWrapping="Wrap" Text="No" VerticalAlignment="Top" FontSize="14.667" FontWeight="Bold"/>
                <TextBox x:Name="txtNo" Margin="697,55,10,0" TextWrapping="Wrap" VerticalAlignment="Top" IsReadOnly="True"/>
            </Grid>
		</Border>
	</Grid>
</controls:ChildWindow>